package com.hospital.doctor.service;

import com.hospital.doctor.mapper.CheckMapper;
import com.hospital.doctor.pojo.CheckBody;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CheckServiceImpl implements CheckService {

    @Autowired
    private CheckMapper checkMapper;

    @Override
    public int insertCheck(CheckBody checkBody) {

        return checkMapper.insertCheck(checkBody);
    }

    @Override
    public List<CheckBody> selectAllBypId(int pId) {
        return checkMapper.selectAllBypId(pId);
    }

    @Override
    public CheckBody selectBycId(int cId) {
        return checkMapper.selectBycId(cId);
    }
}
